package com.ieei.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.ieei.entity.Article;
import com.ieei.service.UserService;

@Controller
public class UserController {
	@Autowired
	private UserService userService;
	

	@RequestMapping(value = "/test", method = RequestMethod.GET)
	public void test1() {
		List<Article> list = userService.getUserArticles(1L);
		for (Article article : list) {
			System.out.println(article);
		}
	}
	
	
}
